package com.ymall.service;

import com.ymall.common.ServerResponse;
import com.ymall.pojo.User;

/**
 * Created by EvenLee on 2017/5/17.
 */
public interface IUserService {

    ServerResponse<User> login(String username,String password);

    ServerResponse<String> register (User user);

    ServerResponse<String> checkValid(String str,String type);

    ServerResponse<String> selectQuestion(String username);

    ServerResponse<String> selectAnswer(String username,String question,String answer);

    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);

    ServerResponse<String> resetPassword(User user,String passwordOld,String passwordNew);

    ServerResponse checkAdmin(User user);
}
